package org.example.controller;

import cn.lingyangwl.framework.core.response.Resp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

/**
 * @author shenguangyang
 */
@Api(tags = "demo模块")
@RequestMapping("/demo")
@RestController
public class DemoController {

    @ApiOperation("更新订单")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "orderId", value = "订单id", required = true, paramType = "query"),
    })
    @PostMapping("/test2")
    public Resp<String> test2(@RequestParam("orderId") String orderId) {
        return Resp.ok(orderId);
    }
}
